using Microsoft.EntityFrameworkCore;
using mvc.Models;
namespace mvc.Db
{
    public class Dbcon : DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder builder)
        {
          var constr = "server=.;database = Dbcon;uid=sa;pwd = 123456";   
          builder.UseSqlServer(constr);
        }
        public DbSet<Book> Book{get;set;}
        public DbSet<Library> Library {get;set;}
    }
}